#include "contrlDevices.h"

int drawingroomLightOpen()
{
	digitalWrite(LED4_PIN,LOW);
}

int drawingroomLightClose()
{
	digitalWrite(LED4_PIN,HIGH);
}

int drawingroomLightInit()
{
	pinMode(LED4_PIN,OUTPUT);
	digitalWrite(LED4_PIN,HIGH);

}

contrl drawingroomLight = {
	.devicesName = "drawingroomLight",
	.open = drawingroomLightOpen,
	.close = drawingroomLightClose,
	.deviceInit = drawingroomLightInit
};

contrl *addDrawingroomLightToDeviceLink(contrl *phead)
{
	if(phead != NULL) drawingroomLight.next = phead;
	return &drawingroomLight;
}